From 5b744d0d8d0506901537a956e88a4425444773b5 Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Mon, 4 Jun 2018 08:12:02 +0300 Subject: [PATCH] Header checksum and header size were in the wrong order Signed-off-by: Jonathan Dieter --- zchunk_format.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zchunk_format.txt b/zchunk_format.txt index fb7944b..17deaa4 100644 --- a/zchunk_format.txt +++ b/zchunk_format.txt @@ -15,9 +15,9 @@ Definitions: number. The lead: -+-+-+-+-+-+====================+=================+==================+ -| ID | Checksum type (ci) | Header checksum | Header size (ci) | -+-+-+-+-+-+====================+=================+==================+ ++-+-+-+-+-+====================+==================+=================+ +| ID | Checksum type (ci) | Header size (ci) | Header checksum | ++-+-+-+-+-+====================+==================+=================+ ID '\0ZCK1', identifies file as zchunk version 1 file @@ -30,13 +30,13 @@ Checksum type 0 = SHA-1 1 = SHA-256 +Header size: + This is an integer containing the size of the header, not including the lead + Header checksum This is the checksum of everything from the beginning of the file until the end of the index, ignoring the header checksum. -Header size: - This is an integer containing the size of the header, not including the lead - The preface: +===============+-+-+-+-+========================+ -- 2.30.2